﻿@model List<Order>

@{
    ViewData["Title"] = "UserIndex";
    Layout = "_LayoutUser";
}

<div class="container-fluid">
    <div class="row cm-fix-height">
        <div class="col-sm-12">
            <div class="panel panel-danger">
                <div class="panel-body">
                    <h3>订单基本信息管理</h3>

                    @if (Model != null)
                    {
                        <table class="table table-hover" style="margin-bottom:0">

                            <thead>
                                <tr>
                                    <th>#</th>
                                    <th>订单号</th>
                                    <th>车次</th>
                                    <th>用户身份证号</th>
                                </tr>
                            </thead>
                            
                            @for (var item=0;item<Model.Count;item++)
                            {
                                @if(Model[item].Uid==ViewData["uid"].ToString())
                                {
                                <tbody>
                                    <tr>
                                        <th scope="row">@item</th>
                                        <td>@Model[item].Oid</td>
                                        <td>@Model[item].Tid</td>
                                        <td>@Model[item].Uid</td>
                                </tbody>
                                }

                            }
                            <tr>
                                <th colsapn="4" style="text-align:center;">
                                    <input type="button" class="btn btn-default" onclick="javascript: window.history.back();" value="返回" />
                                </th>
                            </tr>
                        </table>
                    }
                </div>
            </div>
        </div>
    </div>
</div>